diff --git a/src/main.cpp b/src/main.cpp index 97a2b12..4dbfa9e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -134,7 +134,11 @@ cl::OptionCategory category("capi generator options"); bool isDebugEnabled() { // return debugEnabled.getValue(); +#ifdef NDEBUG return false; +#else + return true; +#endif } int main(int argc, const char **argv) diff --git a/src/util.hpp b/src/util.hpp index 1749b3f..ae79c6e 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -536,8 +536,8 @@ struct Typedata return forwardDecl+ctype+" "+name+"["+std::to_string(array_size)+"]"; } else { - logd("// ARRAY SIZE WAS 0, outputting as simple pointer"); - return forwardDecl+ctype+"* "+name; + // logd("// ARRAY SIZE WAS 0, outputting as simple pointer"); + return forwardDecl+ctype+" "+name; } }