ext/swig_vpi.i in ruby-vpi-12.1.0 vs ext/swig_vpi.i in ruby-vpi-13.0.0
- old
+ new
@@ -1,8 +1,15 @@
%module vpi
+
+
+/* Parse the header file to generate wrappers */
%{
-/* Includes the header in the wrapper code */
#include "swig_vpi.h"
%}
-
-/* Parse the header file to generate wrappers */
%include "swig_vpi.h"
+
+
+/* allows us to set S_cb_data.cb_rtn = Vpi::Vlog_relay_ruby from Ruby */
+%{
+#include "vlog.h"
+%}
+%constant PLI_INT32 vlog_relay_ruby(struct t_cb_data *);