begin rework for js tests and hook examples

This commit is contained in:
Richard Holland
2022-06-06 14:05:17 +00:00
parent d452f9ca5a
commit 5f74392bcb
68 changed files with 4197 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include "api.h"
int64_t hook(uint32_t reserved )
{
int64_t x = float_set(0, 1234567890);
int64_t l = float_root(x, 2);
TRACEXFL(l);
int64_t i = float_int(l, 6, 1);
TRACEVAR(i);
ASSERT(i == 35136418286444ULL);
// RH TODO: more tests
accept (0,0,0);
_g(1,1); // every hook needs to import guard function and use it at least once
// unreachable
return 0;
}