dimanche 8 septembre 2019

use of undeclared identifier __glibcxx_assert

I have some C++11 code that I need to compile with the Android NDK. I'm on Mac OS 10.3.

It makes use of the __glibcxx_assert macro without importing the defining header file. It is not imported previously either.

#include <cstdlib>
#include <cstdio>
#include <cstring>

#include <mutex>

#include "Fifo.h"

    void Fifo::setReader(int readerIx, Port* p){
        __glibcxx_assert(readerIx >= nReaders_)
        readers_[readerIx].port = p;
    }

This should not compile anywhere, am I right? Or Am I missing something here?

Aucun commentaire:

Enregistrer un commentaire