aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-03-18 09:56:44 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-03-19 15:57:52 +0100
commit37e9658f74f9421aaae5fe71f12eb2221f2d574a (patch)
treef55aeab48b2b4edf3267aaf1f5459d52c9b7aa36 /src/keeper.h
parent352c7bec48f166e34fa94f7481882a8b5958e15c (diff)
downloadlanes-37e9658f74f9421aaae5fe71f12eb2221f2d574a.tar.gz
lanes-37e9658f74f9421aaae5fe71f12eb2221f2d574a.tar.bz2
lanes-37e9658f74f9421aaae5fe71f12eb2221f2d574a.zip
C++ migration: buildfixes
Essentially, buildfixes when compiling as C++, plus properly marking public API as extern "C"
Diffstat (limited to 'src/keeper.h')
-rw-r--r--src/keeper.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/keeper.h b/src/keeper.h
index d30aa36..33118be 100644
--- a/src/keeper.h
+++ b/src/keeper.h
@@ -1,7 +1,13 @@
1#if !defined( __keeper_h__) 1#pragma once
2#define __keeper_h__ 1
3 2
3#ifdef __cplusplus
4extern "C" {
5#endif // __cplusplus
4#include "lua.h" 6#include "lua.h"
7#ifdef __cplusplus
8}
9#endif // __cplusplus
10
5#include "threading.h" 11#include "threading.h"
6#include "uniquekey.h" 12#include "uniquekey.h"
7 13
@@ -53,5 +59,3 @@ int keepercall_set( lua_State* L);
53int keepercall_count( lua_State* L); 59int keepercall_count( lua_State* L);
54 60
55int keeper_call( Universe* U, lua_State* K, keeper_api_t _func, lua_State* L, void* linda, uint_t starting_index); 61int keeper_call( Universe* U, lua_State* K, keeper_api_t _func, lua_State* L, void* linda, uint_t starting_index);
56
57#endif // __keeper_h__ \ No newline at end of file