Pioneer
Loading...
Searching...
No Matches
LuaFixed.h
Go to the documentation of this file.
1// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#ifndef _LUAFIXED_H
5#define _LUAFIXED_H
6
7#include "fixed.h"
8
9struct lua_State;
10
11namespace LuaFixed {
12 extern const char LibName[];
13 extern const char TypeName[];
14
15 void Register(lua_State *L);
16 void PushToLua(lua_State *L, const fixed &v);
17 const fixed *GetFromLua(lua_State *L, int idx);
18 const fixed *CheckFromLua(lua_State *L, int idx);
19} // namespace LuaFixed
20
21#endif
Definition LuaFixed.h:11
const fixed * CheckFromLua(lua_State *L, int idx)
Definition LuaFixed.cpp:162
const char TypeName[]
Definition LuaFixed.cpp:125
const fixed * GetFromLua(lua_State *L, int idx)
Definition LuaFixed.cpp:157
const char LibName[]
Definition LuaFixed.cpp:124
void PushToLua(lua_State *L, const fixed &v)
Definition LuaFixed.cpp:148
void Register(lua_State *L)
Definition LuaFixed.cpp:127