Beispiel #1
0
static int str_format (lua_State *L) {
  int arg = 1;
  luaL_Buffer b;
  wstr_format_helper(&b, L, arg);
  luaL_pushresult(&b);
  return 1;
}
Beispiel #2
0
static int str_format (lua_State *L) {
  luaL_Buffer b;
  int ret = wstr_format_helper(&b, L, 1);
  if (ret == 0)
	  return 0;
  luaL_pushresult(&b);
  return 1;
}