Changeset 7dcce0a in mainline for uspace/lib/cpp/include/__bits/io


Ignore:
Timestamp:
2019-01-16T18:07:45Z (7 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/include/__bits/io
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/io/fstream.hpp

    rcf9e949 r7dcce0a  
    11/*
    2  * Copyright (c) 2018 Jaroslav Jindrak
     2 * Copyright (c) 2019 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    3030#define LIBCPP_BITS_IO_FSTREAM
    3131
     32#include <cassert>
    3233#include <cstdio>
    3334#include <ios>
     
    267268            {
    268269                // TODO: implement
     270                __unimplemented();
    269271                return nullptr;
    270272            }
     
    274276            {
    275277                // TODO: implement
     278                __unimplemented();
    276279                return pos_type{};
    277280            }
     
    281284            {
    282285                // TODO: implement
     286                __unimplemented();
    283287                return pos_type{};
    284288            }
  • uspace/lib/cpp/include/__bits/io/istream.hpp

    rcf9e949 r7dcce0a  
    11/*
    2  * Copyright (c) 2018 Jaroslav Jindrak
     2 * Copyright (c) 2019 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    3030#define LIBCPP_BITS_IO_ISTREAM
    3131
     32#include <cassert>
    3233#include <ios>
    3334#include <iosfwd>
     
    339340            {
    340341                // TODO: implement
     342                __unimplemented();
     343                return *this;
    341344            }
    342345
     
    344347            {
    345348                // TODO: implement
     349                __unimplemented();
     350                return *this;
    346351            }
    347352
     
    349354            {
    350355                // TODO: implement
     356                __unimplemented();
     357                return *this;
    351358            }
    352359
     
    354361            {
    355362                // TODO: implement
     363                __unimplemented();
     364                return *this;
    356365            }
    357366
  • uspace/lib/cpp/include/__bits/io/ostream.hpp

    rcf9e949 r7dcce0a  
    11/*
    2  * Copyright (c) 2018 Jaroslav Jindrak
     2 * Copyright (c) 2019 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    3030#define LIBCPP_BITS_IO_OSTREAM
    3131
     32#include <cassert>
    3233#include <ios>
    3334#include <iosfwd>
     
    458459            {
    459460                // TODO: implement
     461                __unimplemented();
    460462                return pos_type{};
    461463            }
     
    464466            {
    465467                // TODO: implement
     468                __unimplemented();
    466469                return *this;
    467470            }
     
    470473            {
    471474                // TODO: implement
     475                __unimplemented();
    472476                return *this;
    473477            }
Note: See TracChangeset for help on using the changeset viewer.