RetroArch/gfx/glsym/rglgen.c

21 lines
433 B
C
Raw Normal View History

2013-12-31 21:10:58 +00:00
#include <stdint.h>
#include "rglgen.h"
#include "glsym.h"
#include <string.h>
void rglgen_resolve_symbols_custom(rglgen_proc_address_t proc,
const struct rglgen_sym_map *map)
{
for (; map->sym; map++)
{
rglgen_func_t func = proc(map->sym);
memcpy(map->ptr, &func, sizeof(func));
}
}
void rglgen_resolve_symbols(rglgen_proc_address_t proc)
{
2013-07-05 17:29:48 +00:00
rglgen_resolve_symbols_custom(proc, rglgen_symbol_map);
}