title: How to use a parameter in a macro call?
body: <p>I have defined the following simple macro:</p>
  
  <pre><code> (defmacro define-class (class-name)
    `(defclass ,class-name ()()))
  </code></pre>
  
  <p>And now I want to use it in the following function:</p>
  
  <pre><code>(defun create-data (mode)
    (define-class mode))
  </code></pre>
  
  <p>After compiling the last function I get the following message, <em>the variable MODE is defined but never used</em>.</p>
  
  <p>And when I execute the function to create a class "myclass", I get instead the creation of a class of type "mode":</p>
  
  <pre><code> (create-data 'myclass)
   #&lt;STANDARD-CLASS MODE&gt;
  </code></pre>
  
  <p>Seems that my argument is not used? How can I get the function <em>create-data</em> to use the argument?</p>