interface
| 410 | |
| 411 | // interface |
| 412 | int asCGeneric::SetReturnDouble(double val) |
| 413 | { |
| 414 | // Verify the type of the return value |
| 415 | if( (sysFunction->returnType.IsObject() || sysFunction->returnType.IsFuncdef()) || sysFunction->returnType.IsReference() ) |
| 416 | return asINVALID_TYPE; |
| 417 | |
| 418 | if( sysFunction->returnType.GetSizeOnStackDWords() != 2 ) |
| 419 | return asINVALID_TYPE; |
| 420 | |
| 421 | // Store the value |
| 422 | *(double*)&returnVal = val; |
| 423 | |
| 424 | return 0; |
| 425 | } |
| 426 | |
| 427 | // interface |
| 428 | int asCGeneric::SetReturnAddress(void *val) |