title: Lua 5.3 - Integers - type() - lua_type()
body: <p>Since Lua 5.3, inegers are supported.</p>
  
  <p>But how can I do :</p>
  
  <pre><code>if type( 123 ) == "integer" then
  end
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>switch( lua_type( L, -1 ) )
  {
  case LUA_TINTEGER:
      break;
  }
  </code></pre>
  
  <p>Since <code>type()</code> is still going to return <code>"number"</code> for both integer and reals, and <code>LUA_TINTEGER</code> does not exist ?</p>
  
  <p>Thanks.</p>