MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / res_getfunc

Function res_getfunc

src/uaeresource.cpp:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static uaecptr res_init, res_name, res_id, base;
18
19static uae_u32 REGPARAM2 res_getfunc (TrapContext *ctx)
20{
21 uaecptr funcname = trap_get_areg(ctx, 0);
22 uae_char tmp[256];
23 uae_u32 p;
24 TCHAR *s;
25
26 if (funcname == 0)
27 return 0;
28 trap_get_string(ctx, tmp, funcname, sizeof tmp);
29 s = au(tmp);
30 p = find_trap(s);
31 xfree (s);
32 return p;
33}
34
35static uae_u32 REGPARAM2 res_initcode (TrapContext *ctx)
36{

Callers

nothing calls this directly

Calls 4

trap_get_aregFunction · 0.85
trap_get_stringFunction · 0.85
auFunction · 0.85
find_trapFunction · 0.85

Tested by

no test coverage detected