Download Game! Currently 72 players and visitors. Last logged in:DealRauskisPereKlarence

Blitzer's Blog >> 72014

Back to blogs index
Posted: 04 Sep 2026 13:42 [ permalink ]
User@elli:~/Downloads/Remote/LPC/GEM$ node harness.js tests/catch.c
[+] Compiling tests/catch.c into VM Memory...

[+] Launching Javascript V8 Native Environment...


--- BOOTING VM ---
  .. inside fun()
Error: xyz
Got it!

[CRASH] non-caught throw
user@elli:~/Downloads/Remote/LPC/GEM$

==

This actually is more complex than.at first sight:

user@elli:~/Downloads/Remote/LPC/GEM$ cat tests/define.c
#define STR     "42"
#define INT     999
#define THIS    "define.c"

void create ()
{
  printf ("str: %s
", STR);
  printf ("int: %d
", INT);

  THIS->fun ();
}
user@elli:~/Downloads/Remote/LPC/GEM$

==

The notation of ".."->fun(..) or var->fun(..) needs to be transpiled as
call_other, which in turn needs to attempt to load_object(str) OR
find_object("this_style_filename_of_clone#123") to try to force-evaluate the
first argument into an object