singleheader compiles again

This commit is contained in:
2024-12-10 22:20:40 -05:00
parent aecc2c59dd
commit c8d6c27f07
6 changed files with 88 additions and 136 deletions

View File

@ -3,7 +3,6 @@
#define GEN_EXPOSE_BACKEND
#define GEN_C_LIKE_CPP 1
#include "gen.cpp"
#include "helpers/push_ignores.inline.hpp"
#include <stdlib.h>

View File

@ -391,7 +391,7 @@ OpValidateResult operator__validate( Operator op, CodeParam params_code, CodeTyp
}
#define null_check( Context_, Code_ ) \
if ( Code_ != nullptr ) \
if ( Code_ == nullptr ) \
{ \
log_failure( "gen::" stringize(Context_) ": " stringize(Code_) " provided is null" ); \
return InvalidCode; \

View File

@ -83,6 +83,6 @@ Code code_refactor_and_format( Code code, char const* scratch_path, char const*
}
Code result = scan_file( scratch_path );
remove("gen/scratch.hpp");
::remove(scratch_path);
return result;
}