Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 23f3fec

Browse files
authored
Fixup ecabcfb (Add back functions deleted by accident) (#1951)
1 parent 93402a2 commit 23f3fec

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎Shared/mods/deathmatch/logic/lua/LuaBasic.h‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ namespace lua
127127
return 1;
128128
}
129129

130+
template <typename T>
131+
int Push(lua_State* L, const std::shared_ptr<T>& ptr)
132+
{
133+
lua_pushelement(L, ptr.get());
134+
return 1;
135+
}
136+
137+
template <typename T>
138+
int Push(lua_State* L, const std::unique_ptr<T>& ptr)
139+
{
140+
lua_pushelement(L, ptr.get());
141+
return 1;
142+
}
143+
130144
/*****************************************************************\
131145
* The functions below may depend on each other, so they need to be
132146
* forward declared.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /