/*
** Lua binding: shop
** Generated automatically by tolua++-1.0.92 on 12/08/14 23:29:34.
*/

#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"

#include "tolua++.h"

/* Exported function */
TOLUA_API int  tolua_shop_open (lua_State* tolua_S);

#include "..\luasample1.h"

/* function to register type */
static void tolua_reg_types (lua_State* tolua_S)
{
}

/* function: DoLuaFile */
#ifndef TOLUA_DISABLE_tolua_shop_cfunc_DoLuaFile00
static int tolua_shop_cfunc_DoLuaFile00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isstring(tolua_S,1,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  const char* path = ((const char*)  tolua_tostring(tolua_S,1,0));
  {
   bool tolua_ret = (bool)  DoLuaFile(path);
   tolua_pushboolean(tolua_S,(bool)tolua_ret);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'DoLuaFile'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* function: GetLuaError */
#ifndef TOLUA_DISABLE_tolua_shop_cfunc_GetLuaError00
static int tolua_shop_cfunc_GetLuaError00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isnoobj(tolua_S,1,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  {
   const char* tolua_ret = (const char*)  GetLuaError();
   tolua_pushstring(tolua_S,(const char*)tolua_ret);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'GetLuaError'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* Open function */
TOLUA_API int tolua_shop_open (lua_State* tolua_S)
{
 tolua_open(tolua_S);
 tolua_reg_types(tolua_S);
 tolua_module(tolua_S,NULL,0);
 tolua_beginmodule(tolua_S,NULL);
  tolua_module(tolua_S,"cfunc",0);
  tolua_beginmodule(tolua_S,"cfunc");
   tolua_function(tolua_S,"DoLuaFile",tolua_shop_cfunc_DoLuaFile00);
   tolua_function(tolua_S,"GetLuaError",tolua_shop_cfunc_GetLuaError00);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}


#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
 TOLUA_API int luaopen_shop (lua_State* tolua_S) {
 return tolua_shop_open(tolua_S);
};
#endif

