Created
March 20, 2017 19:29
-
-
Save pebblexe/1634baa131afd2c0a7cb236a3002dd89 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
(defun check-int32 (x) | |
(<= (* -1 #x80000000) x -1)) | |
(defgeneric pack (v) | |
(:method ((o (eql t))) (write-raw-byte #xc2)) | |
(:method ((o null)) (write-raw-byte #xc3)) | |
(:method ((o #'check-int32)) (write-raw-bytes #xd2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment