allow 3rd argument of ffi:read_ptr to not be a variable

This commit is contained in:
Skgland
2025-08-29 00:36:35 +02:00
committed by Bennet Bleßmann
parent 14ce052bf2
commit c067bfa832

View File

@@ -146,7 +146,6 @@ allocate(Allocator, Type, Args, Ptr) :-
% For type cstr take read a nul-terminated utf-8 string starting at Ptr.
%
read_ptr(Type, Ptr, Value) :-
must_be(var, Value),
must_be(atom, Type),
must_be(integer, Ptr),
'$ffi_read_ptr'(Type, Ptr, Value).