Skip to content

Commit

Permalink
Fixed Linux compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayuto committed Jun 20, 2020
1 parent b7b575a commit 3572be4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/modules/entities/entities_datamaps.h
Expand Up @@ -90,7 +90,7 @@ class CInputFunction: public CFunction
{
public:
CInputFunction(typedescription_t pTypeDesc, CBaseEntity *pBaseEntity);
void CInputFunction::__call__(object value, CBaseEntity *pActivator, CBaseEntity *pCaller);
void __call__(object value, CBaseEntity *pActivator, CBaseEntity *pCaller);

public:
typedescription_t m_pTypeDesc;
Expand Down
6 changes: 4 additions & 2 deletions src/core/modules/entities/entities_entity.cpp
Expand Up @@ -85,7 +85,8 @@ object CBaseEntityWrapper::create(object cls, const char *name)
{
try
{
entity = MakeObject(cls, &pEntity->GetPointer());
CPointer tmp = pEntity->GetPointer();
entity = MakeObject(cls, &tmp);
}
catch (...)
{
Expand Down Expand Up @@ -128,7 +129,8 @@ object CBaseEntityWrapper::find(object cls, const char *name)
{
try
{
return MakeObject(cls, &pEntity->GetPointer());
CPointer tmp = pEntity->GetPointer();
return MakeObject(cls, &tmp);
}
catch (...)
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/modules/listeners/listeners_manager.h
Expand Up @@ -53,7 +53,7 @@
for(int i = 0; i < mngr->m_vecCallables.Count(); i++) \
{ \
BEGIN_BOOST_PY() \
mngr->m_vecCallables[i](##__VA_ARGS__); \
mngr->m_vecCallables[i]( #__VA_ARGS__ ); \
END_BOOST_PY_NORET() \
}

Expand All @@ -65,7 +65,7 @@
for(int i = 0; i < mngr->m_vecCallables.Count(); i++) \
{ \
BEGIN_BOOST_PY() \
return_var = mngr->m_vecCallables[i](##__VA_ARGS__); \
return_var = mngr->m_vecCallables[i]( #__VA_ARGS__ ); \
action \
END_BOOST_PY_NORET() \
}
Expand Down

0 comments on commit 3572be4

Please sign in to comment.