text: #include "RevLINT.hpp"
  
  void rev_luaC_link(int r_lua_State, int o, byte tt)
  {
  	int g = lint_deptr(r_lua_State + 8);	// global_State *g = G(L)
  	*(int*)(o) = *(int*)(g + 48);			// o->gch.next = g->rootgc
  	*(int*)(g + 48) = o;					// g->rootgc = o
  	*(byte*)(o + 4) = *(byte*)(g + 21) & 3;	// o->gch.marked = luaC_white(g)
  	*(byte*)(o + 5) = tt;					// o->gch.tt = tt;
  }
  
  void* rev_luaM_realloc_(int r_lua_State, int block, int osize, int nsize)
  {
  	return nullptr;
  }
  
  r_Proto* rev_luaF_newproto(int r_lua_State)
  {
  	r_Proto* f = rev_luaM_new(r_lua_State, r_Proto);
  	rev_luaC_link(r_lua_State, (int)f, R_LUA_TPROTO);
  	ZeroMemory(f, sizeof(r_Proto));
  	return f;
  }