interface
| 394 | |
| 395 | // interface |
| 396 | int asCGeneric::SetReturnFloat(float val) |
| 397 | { |
| 398 | // Verify the type of the return value |
| 399 | if( (sysFunction->returnType.IsObject() || sysFunction->returnType.IsFuncdef()) || sysFunction->returnType.IsReference() ) |
| 400 | return asINVALID_TYPE; |
| 401 | |
| 402 | if( sysFunction->returnType.GetSizeOnStackDWords() != 1 ) |
| 403 | return asINVALID_TYPE; |
| 404 | |
| 405 | // Store the value |
| 406 | *(float*)&returnVal = val; |
| 407 | |
| 408 | return 0; |
| 409 | } |
| 410 | |
| 411 | // interface |
| 412 | int asCGeneric::SetReturnDouble(double val) |