Fix number of compile errors and warnings with GCC 14
[lsnes.git] / include / lua / address.hpp
blobf1e9ed78693d594aa6b2c241c2f4fcb2004d1a51
1 #ifndef _lua__address__hpp__included__
2 #define _lua__address__hpp__included__
4 namespace lua { class parameters; }
5 namespace lua { class state; }
7 uint64_t lua_get_vmabase(const std::string& vma);
8 uint64_t lua_get_read_address(lua::parameters& P);
10 class lua_address
12 public:
13 lua_address(lua::state& L);
14 static int create(lua::state& L, lua::parameters& P);
15 std::string print();
16 uint64_t get();
17 std::string get_vma();
18 uint64_t get_offset();
19 int l_get(lua::state& L, lua::parameters& P);
20 int l_get_vma(lua::state& L, lua::parameters& P);
21 int l_get_offset(lua::state& L, lua::parameters& P);
22 int l_shift(lua::state& L, lua::parameters& P);
23 int l_replace(lua::state& L, lua::parameters& P);
24 static size_t overcommit();
25 template<class T, bool _bswap> int rw(lua::state& L, lua::parameters& P);
26 private:
27 std::string vma;
28 uint64_t addr;
31 #endif