Last active
August 29, 2015 14:05
-
-
Save W-Net-AI/c8659901223c87097476 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have a setf version of the @@@ method in this macro. How would I go about calling it inside the macro. | |
The way I call it is (setf (@@@ object index) val). | |
(defmacro @ (object &optional i j) | |
"CFFI:MEM-AREF macro with C-POINTER reader." | |
(if (keywordp i) | |
`(mem-aref (resolve-pointer ,object) ,i (or ,j 0)) | |
`(@@@ ,object ,i ,j))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment