Commit 84c535a 1 parent 5e6c125 commit 84c535a Copy full SHA for 84c535a
File tree 14 files changed +28
-0
lines changed
bindings/ruby/lib/czmq/ffi
14 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ install(TARGETS czmq
204
204
RUNTIME DESTINATION bin # .dll file
205
205
)
206
206
207
+ include (${CMAKE_CURRENT_SOURCE_DIR} /src/CMakeLists-local.txt) # Optional project-local hook
208
+
207
209
########################################################################
208
210
# pkgconfig
209
211
########################################################################
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ def __ptr
38
38
raise DestroyedError unless @ptr
39
39
@ptr
40
40
end
41
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
42
+ alias_method :to_ptr , :__ptr
41
43
# Nullify internal pointer and return pointer pointer
42
44
def __ptr_give_ref
43
45
raise DestroyedError unless @ptr
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ AC_PROG_SED
56
56
AC_PROG_AWK
57
57
PKG_PROG_PKG_CONFIG
58
58
59
+ AX_PROJECT_LOCAL_HOOK # Optional project-local hook (acinclude.m4)
60
+
59
61
# Code coverage
60
62
AC_ARG_WITH ( gcov , [ AS_HELP_STRING ( [ --with-gcov=yes/no] ,
61
63
[ With GCC Code Coverage reporting.] ) ] ,
You can’t perform that action at this time.
0 commit comments