Simple Lua
A Simple C++ Lua Wrapper
Loading...
Searching...
No Matches
TypeMap.hpp
1
#pragma once
2
3
#include "Lua.hpp"
4
#include "Table.hpp"
5
6
namespace
SL
7
{
8
/* Types */
9
10
using
String = std::string;
11
using
Number = float;
12
using
Boolean = bool;
13
using
Function = int(*)(SL::State);
14
15
namespace
CompileTime
16
{
17
template
<
typename
T>
18
struct
SL_SYMBOL
TypeMap
19
{
20
static
int
LuaType;
21
22
static
bool
23
check(State L);
24
25
static
void
26
push(State L,
const
T& val);
27
28
static
T
29
construct(State L);
30
};
31
32
template
<>
33
struct
TypeMap
<void*>
34
{
35
static
int
LuaType;
36
37
static
bool
38
check(State L);
39
40
static
void
41
push(State L,
void
* val);
42
43
static
void
*
44
construct(State L);
45
};
46
}
// CompileTime
47
48
}
// SL
SL::CompileTime::TypeMap
Definition
TypeMap.hpp:19
include
SL
Lua
TypeMap.hpp
Generated by
1.11.0