Works on t3h linux

This commit is contained in:
Twilight Suzuka
2006-04-22 19:50:51 +00:00
parent 07b1f0ea87
commit 3ba923e4c0
7 changed files with 164 additions and 33 deletions

View File

@ -66,14 +66,14 @@ bool Capsule::GetBool( void )
{
if (type != capsule_type_bool) ThrowTypeError(capsule_type_bool);
return reinterpret_cast<bool>(data);
return (data != NULL);
}
void Capsule::SetBool(bool Value)
{
CheckEmpty(true);
type = capsule_type_bool;
data = reinterpret_cast<void*>(Value);
if(Value == true) data = reinterpret_cast<Pvoid_t>(1);
};
cell Capsule::GetInt( void )