C import: unions (SDL_Event) and their fields; #defines that are expressions, casts or text; typedef'd structs no function mentions; FLAG_A | FLAG_B fits a u64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Nexoniarz 2026-10-29 09:23:29 +01:00
commit d0666cf788
7 changed files with 314 additions and 13 deletions

7
tests/new/cunion.c Normal file
View file

@ -0,0 +1,7 @@
#include "cunion.h"
int poll_event(Event *e) {
e->motion.type = EV_MOTION;
e->motion.x = 1.5f;
e->motion.y = -2.0f;
return 1;
}