interface
| 330 | |
| 331 | // interface |
| 332 | int asCGeneric::SetReturnByte(asBYTE val) |
| 333 | { |
| 334 | // Verify the type of the return value |
| 335 | if( (sysFunction->returnType.IsObject() || sysFunction->returnType.IsFuncdef()) || sysFunction->returnType.IsReference() ) |
| 336 | return asINVALID_TYPE; |
| 337 | |
| 338 | if( sysFunction->returnType.GetSizeInMemoryBytes() != 1 ) |
| 339 | return asINVALID_TYPE; |
| 340 | |
| 341 | // Store the value |
| 342 | *(asBYTE*)&returnVal = val; |
| 343 | |
| 344 | return 0; |
| 345 | } |
| 346 | |
| 347 | // interface |
| 348 | int asCGeneric::SetReturnWord(asWORD val) |