test(gencpp): add full gencpp/base samples and comprehensive test suite
- Copied 58 files from C:\projects\gencpp\base\ to tests/assets/gencpp_samples - Added test_gencpp_full_suite.py that validates: - Skeleton generation for all .hpp files - Code outline generation - get_definition for key symbols - AST masking with aggregation - All 25 tests pass
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#ifdef INTELLISENSE_DIRECTIVES
|
||||
# pragma once
|
||||
# include "src_start.cpp"
|
||||
#endif
|
||||
|
||||
#pragma region Debug
|
||||
|
||||
void assert_handler( char const* condition, char const* file, char const* function, s32 line, char const* msg, ... )
|
||||
{
|
||||
_printf_err( "%s - %s:(%d): Assert Failure: ", file, function, line );
|
||||
|
||||
if ( condition )
|
||||
_printf_err( "`%s` \n", condition );
|
||||
|
||||
if ( msg )
|
||||
{
|
||||
va_list va;
|
||||
va_start( va, msg );
|
||||
_printf_err_va( msg, va );
|
||||
va_end( va );
|
||||
}
|
||||
|
||||
_printf_err( "%s", "\n" );
|
||||
}
|
||||
|
||||
s32 assert_crash( char const* condition )
|
||||
{
|
||||
GEN_PANIC( condition );
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined( GEN_SYSTEM_WINDOWS )
|
||||
void process_exit( u32 code )
|
||||
{
|
||||
ExitProcess( code );
|
||||
}
|
||||
#else
|
||||
# include <stdlib.h>
|
||||
|
||||
void process_exit( u32 code )
|
||||
{
|
||||
exit( code );
|
||||
}
|
||||
#endif
|
||||
|
||||
#pragma endregion Debug
|
||||
Reference in New Issue
Block a user