mirror of
https://github.com/Ed94/perfaware.git
synced 2026-08-25 02:20:31 +00:00
working build. (not run)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifdef INTELLISENSE_DIRECTIVES
|
||||
# pragma once
|
||||
# include "dsl.h"
|
||||
# if _WIN32
|
||||
# include "win32.h"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#pragma region Debug
|
||||
#define debug_trap() __builtin_debugtrap()
|
||||
|
||||
#if BUILD_DEBUG
|
||||
FI_ void assert(U8 cond);
|
||||
#else
|
||||
#define assert(cond)
|
||||
#endif
|
||||
#pragma endregion Debug
|
||||
@@ -257,12 +257,3 @@ FI_ B8 add_s_of(S8 a, S8 b, S8*R_ res) { return __builtin_saddll_overflow(a, b,
|
||||
FI_ B8 sub_s_of(S8 a, S8 b, S8*R_ res) { return __builtin_ssubll_overflow(a, b, res); }
|
||||
FI_ B8 mul_s_of(S8 a, S8 b, S8*R_ res) { return __builtin_smulll_overflow(a, b, res); }
|
||||
#pragma endregion Math
|
||||
|
||||
#pragma region Debug
|
||||
#define debug_trap() __builtin_debugtrap()
|
||||
#if BUILD_DEBUG
|
||||
FI_ void assert(U8 cond) { if(cond){return;} else{debug_trap(); ms_exit_process(1);} }
|
||||
#else
|
||||
#define assert(cond)
|
||||
#endif
|
||||
#pragma endregion Debug
|
||||
|
||||
@@ -151,3 +151,8 @@ enum {
|
||||
|
||||
MS_VK_SHIFT =0x10,
|
||||
};
|
||||
|
||||
|
||||
#if BUILD_DEBUG
|
||||
FI_ void assert(U8 cond) { if(cond){return;} else{debug_trap(); ms_exit_process(1);} }
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
#include "duffle/dsl.h"
|
||||
#include "duffle/analysis.h"
|
||||
#include "duffle/memory.h"
|
||||
#include "duffle/win32.h"
|
||||
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
ms_exit_process(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user