Small fixes

This commit is contained in:
yvt 2013-11-23 02:50:02 +09:00
parent 2d0edc357e
commit 8552c30366
3 changed files with 6 additions and 1 deletions

View File

@ -97,6 +97,9 @@ namespace spades {
ptr = NULL;
return p;
}
operator bool() {
return ptr != NULL;
}
};
}

View File

@ -35,6 +35,7 @@ namespace spades {
}
void Runner::RunProtected() {
SPADES_MARK_FUNCTION();
std::string err;
try{
Run();
@ -63,6 +64,7 @@ namespace spades {
}
}
void Runner::Run() {
SPADES_MARK_FUNCTION();
class ConcreteRunner: public SDLRunner {
Runner *r;
protected:

View File

@ -63,7 +63,7 @@ namespace spades {
asCALL_THISCALL);
manager->CheckError(r);
r = eng->RegisterObjectMethod("Font",
"void DrawShadow(const string& in, const Vector2& in, float, const Vector4& in)",
"void DrawShadow(const string& in, const Vector2& in, float, const Vector4& in, const Vector4& in)",
asMETHOD(client::IFont, DrawShadow),
asCALL_THISCALL);
manager->CheckError(r);