#NEWLINE# @ lower_constant ( types . ExternalFunctionPointer ) #NEWLINE# def constant_function_pointer( context , builder , ty , pyval ) : #NEWLINE# #INDENT# ptrty = context . get_function_pointer_type ( builder ) #NEWLINE# ptrval = context . get_constant_generic ( builder , types . intp , ty . get_pointer ( pyval ) ) #NEWLINE# return builder . inttoptr ( ptrval , ptrty )