Changeset 7dcce0a in mainline for uspace/lib/cpp/src


Ignore:
Timestamp:
2019-01-16T18:07:45Z (6 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4248ce5
Parents:
cf9e949
git-author:
Jaroslav Jindrak <dzejrou@…> (2019-01-12 15:09:49)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2019-01-16 18:07:45)
Message:

cpp: abort and report when an unimplemented function is called

Location:
uspace/lib/cpp/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/src/__bits/runtime.cpp

    rcf9e949 r7dcce0a  
    3333#include <mutex>
    3434
     35void* __dso_handle = nullptr;
     36
    3537namespace __cxxabiv1
    3638{
  • uspace/lib/cpp/src/__bits/unwind.cpp

    rcf9e949 r7dcce0a  
    11/*
    2  * Copyright (c) 2017 Jaroslav Jindrak
     2 * Copyright (c) 2019 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
     29#include <cassert>
    2930#include <cstdint>
    3031#include <cstdlib>
     
    175176    {
    176177        // TODO: implement
     178        __unimplemented();
    177179        return nullptr;
    178180    }
     
    181183    {
    182184        // TODO: implement
     185        __unimplemented();
    183186    }
    184187
     
    186189    {
    187190        // TODO: implement
     191        __unimplemented();
    188192    }
    189193
     
    191195    {
    192196        // TODO: implement
     197        __unimplemented();
    193198        return nullptr;
    194199    }
     
    197202    {
    198203        // TODO: implement
     204        __unimplemented();
    199205        return nullptr;
    200206    }
     
    203209    {
    204210        // TODO: implement
     211        __unimplemented();
    205212    }
    206213
     
    208215    {
    209216        // TODO: implement
     217        __unimplemented();
    210218    }
    211219
     
    213221    {
    214222        // TODO: implement
     223        __unimplemented();
    215224    }
    216225
     
    218227    {
    219228        // TODO: implement
     229        __unimplemented();
    220230    }
    221231
     
    223233    {
    224234        // TODO: implement
     235        __unimplemented();
    225236    }
    226237
     
    231242    {
    232243        // TODO: implement
     244        __unimplemented();
    233245        return _URC_NO_REASON;
    234246    }
  • uspace/lib/cpp/src/condition_variable.cpp

    rcf9e949 r7dcce0a  
    11/*
    2  * Copyright (c) 2018 Jaroslav Jindrak
     2 * Copyright (c) 2019 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
     29#include <cassert>
    2930#include <condition_variable>
    3031
     
    8889    {
    8990        // TODO: implement
     91        __unimplemented();
    9092    }
    9193}
  • uspace/lib/cpp/src/string.cpp

    rcf9e949 r7dcce0a  
    11/*
    2  * Copyright (c) 2018 Jaroslav Jindrak
     2 * Copyright (c) 2019 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
     29#include <cassert>
    2930#include <string>
    3031
     
    3435    {
    3536        // TODO: implement using stol once we have numeric limits
     37        __unimplemented();
    3638        return 0;
    3739    }
     
    7274    {
    7375        // TODO: implement using stol once we have numeric limits
     76        __unimplemented();
    7477        return 0;
    7578    }
     
    7881    {
    7982        // TODO: implement using stoul once we have numeric limits
     83        __unimplemented();
    8084        return 0;
    8185    }
     
    8488    {
    8589        // TODO: implement
     90        __unimplemented();
    8691        return 0.f;
    8792    }
     
    9095    {
    9196        // TODO: implement
     97        __unimplemented();
    9298        return 0.0;
    9399    }
     
    96102    {
    97103        // TODO: implement
     104        __unimplemented();
    98105        return 0.0l;
    99106    }
     
    206213    {
    207214        // TODO: implement
     215        __unimplemented();
    208216        return 0;
    209217    }
     
    212220    {
    213221        // TODO: implement
     222        __unimplemented();
    214223        return 0;
    215224    }
     
    218227    {
    219228        // TODO: implement
     229        __unimplemented();
    220230        return 0;
    221231    }
     
    224234    {
    225235        // TODO: implement
     236        __unimplemented();
    226237        return 0;
    227238    }
     
    230241    {
    231242        // TODO: implement
     243        __unimplemented();
    232244        return 0;
    233245    }
     
    236248    {
    237249        // TODO: implement
     250        __unimplemented();
    238251        return 0.f;
    239252    }
     
    242255    {
    243256        // TODO: implement
     257        __unimplemented();
    244258        return 0.0;
    245259    }
     
    248262    {
    249263        // TODO: implement
     264        __unimplemented();
    250265        return 0.0l;
    251266    }
     
    254269    {
    255270        // TODO: implement
     271        __unimplemented();
    256272        return wstring{};
    257273    }
     
    260276    {
    261277        // TODO: implement
     278        __unimplemented();
    262279        return wstring{};
    263280    }
     
    266283    {
    267284        // TODO: implement
     285        __unimplemented();
    268286        return wstring{};
    269287    }
     
    272290    {
    273291        // TODO: implement
     292        __unimplemented();
    274293        return wstring{};
    275294    }
     
    278297    {
    279298        // TODO: implement
     299        __unimplemented();
    280300        return wstring{};
    281301    }
     
    284304    {
    285305        // TODO: implement
     306        __unimplemented();
    286307        return wstring{};
    287308    }
     
    290311    {
    291312        // TODO: implement
     313        __unimplemented();
    292314        return wstring{};
    293315    }
     
    296318    {
    297319        // TODO: implement
     320        __unimplemented();
    298321        return wstring{};
    299322    }
     
    302325    {
    303326        // TODO: implement
     327        __unimplemented();
    304328        return wstring{};
    305329    }
  • uspace/lib/cpp/src/thread.cpp

    rcf9e949 r7dcce0a  
    11/*
    2  * Copyright (c) 2018 Jaroslav Jindrak
     2 * Copyright (c) 2019 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
     29#include <cassert>
    2930#include <cstdlib>
    3031#include <exception>
     
    120121    {
    121122        // TODO:
     123        __unimplemented();
    122124        return 0;
    123125    }
Note: See TracChangeset for help on using the changeset viewer.