2011-07-05 13:41:05 +00:00
|
|
|
#ifndef __LUAPUSH_H__
|
|
|
|
#define __LUAPUSH_H__
|
2010-12-12 17:08:36 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
2011-07-05 13:41:05 +00:00
|
|
|
#include <string>
|
2010-12-12 17:08:36 +00:00
|
|
|
|
|
|
|
#include "lua.hpp"
|
|
|
|
#include "tolua++.h"
|
|
|
|
|
2011-07-05 13:41:05 +00:00
|
|
|
std::wstring to_wstring(lua_State* L, int arg, void* type);
|
|
|
|
void push_wstring(lua_State* L, const std::wstring& value);
|
|
|
|
int is_wstring(lua_State* L, int lo, const char* type, int def, tolua_Error* err);
|
2010-12-12 17:08:36 +00:00
|
|
|
|
2011-07-05 13:41:05 +00:00
|
|
|
void push_wchar(lua_State* L, const WCHAR* value);
|
|
|
|
const WCHAR* to_wchar(lua_State* L, int arg, void* type);
|
|
|
|
int is_wchar(lua_State* L, int lo, const char* type, int def, tolua_Error* err);
|
2010-12-12 17:08:36 +00:00
|
|
|
|
|
|
|
#endif
|