1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
6 (in-package :iolib.base
)
8 (defvar *safety-checks
*
9 #+iolib-debug t
#-iolib-debug nil
10 "Enables safety checks throught the IOLib codebase.")
12 (defmacro debug-only
(&body body
)
16 (defmacro debug-only
* (&body body
)
17 `(when *safety-checks
*
20 (defmacro production-only
(&body body
)
21 (unless *safety-checks
*
24 (defmacro production-only
* (&body body
)
25 `(unless *safety-checks
*