Created
July 21, 2022 15:15
-
-
Save steve-s/e7c0dd316411c1309b99a44050e8f996 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<> inline | |
HPy BinaryAdd::operator()( HPyContext *ctx, Variable* first, double second, HPy h_first, HPy h_second ) | |
{ | |
HPy temp = BinaryMul()( ctx, first, 1.0, h_first, HPy_NULL ); | |
if( HPy_IsNull(temp) ) | |
return HPy_NULL; | |
HPy result = operator()( ctx, Term_AsStruct( ctx, temp ), second, temp, h_second ); | |
HPy_Close(ctx, temp); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment