mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-10 07:00:20 -07:00
Replace DEFCONSTANT with DEFPARAMETER because it constains a call to C-INLINE
This commit is contained in:
parent
307ae3853a
commit
ebefe248a0
1 changed files with 3 additions and 4 deletions
|
|
@ -40,10 +40,9 @@
|
|||
extern ECL_API size_t GC_get_total_bytes();
|
||||
")
|
||||
|
||||
(eval-when (:load-toplevel)
|
||||
(defconstant +wrap+ (ffi:c-inline () () :object
|
||||
"ecl_make_unsigned_integer(~((size_t)0))"
|
||||
:one-liner t)))
|
||||
(defparameter +wrap+ (ffi:c-inline () () :object
|
||||
"ecl_make_unsigned_integer(~((size_t)0))"
|
||||
:one-liner t))
|
||||
|
||||
(defun get-bytes-consed (orig)
|
||||
(let ((bytes (ffi:c-inline () () :object "ecl_make_unsigned_integer(GC_get_total_bytes())"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue