add todo cmd

main
Dominik Madarász 2023-10-26 09:20:59 +02:00
parent 4163fa610a
commit 692885e711
2 changed files with 19 additions and 0 deletions

View File

@ -28,6 +28,7 @@ if "%1"=="help" (
echo %0 [tidy] ; clean up temp files
echo %0 [bind] ; generate lua bindings
echo %0 [test] ; check untracked allocators in V4K
echo %0 [todo] ; check for @fixme and @todo
echo %0 [split^|join] ; engine/v4k* ^>split^> engine/split/* or engine/split/* ^>join^> engine/v4k*
echo %0 [lua] ; execute lua script with v4k
echo %0 [amalgamation] ; combine engine/v4k* into a single-header file
@ -258,6 +259,12 @@ if "%1"=="test" (
exit /b
)
if "%1"=="todo" (
findstr /RNC:"[^_xv]@todo" engine\split\v4k*
findstr /RNC:"[^_xv]@fixme" engine\split\v4k*
exit /b
)
if "%1"=="html5" (
pushd demos\html5
call make.bat %2

View File

@ -0,0 +1,12 @@
#include "v4k.h"
void handle_crash() {
alert("crash!");
}
int main() {
trap_install();
atexit(handle_crash);
app_crash();
return 0;
}