Skip to content

Instantly share code, notes, and snippets.

Created July 21, 2022 15:15
What would you like to do?
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