Commit ef283fa8 authored by gsamain's avatar gsamain

add void* cast for acthon results

parent cb2f9f67
...@@ -440,6 +440,13 @@ def inject_acthon_interfaces(self): ...@@ -440,6 +440,13 @@ def inject_acthon_interfaces(self):
result_int_typecast_entry.is_variable = 1 result_int_typecast_entry.is_variable = 1
result_scope.var_entries.append(result_int_typecast_entry) result_scope.var_entries.append(result_int_typecast_entry)
result_voidStar_typecast_type = PyrexTypes.CFuncType(PyrexTypes.c_void_ptr_type, [], nogil = 1)
result_voidStar_typecast_entry = result_scope.declare("operator void *", "operator void *",
result_voidStar_typecast_type, None, "extern")
result_voidStar_typecast_entry.is_cfunction = 1
result_voidStar_typecast_entry.is_variable = 1
result_scope.var_entries.append(result_voidStar_typecast_entry)
# cypclass ActhonMessageInterface # cypclass ActhonMessageInterface
message_scope = Scope("ActhonMessageInterface", self, None) message_scope = Scope("ActhonMessageInterface", self, None)
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
virtual void pushIntResult(int result) = 0; virtual void pushIntResult(int result) = 0;
virtual int getIntResult() = 0; virtual int getIntResult() = 0;
operator int() { return this->getIntResult(); } operator int() { return this->getIntResult(); }
operator void*() { return this->getVoidStarResult(); }
}; };
struct ActhonMessageInterface; struct ActhonMessageInterface;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment