Explorar o código

Debugger for Lua scripts (Step 1/?)

bel2125 %!s(int64=7) %!d(string=hai) anos
pai
achega
d5fcd37c9a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/mod_lua.inl

+ 2 - 0
src/mod_lua.inl

@@ -1841,10 +1841,12 @@ prepare_lua_environment(struct mg_context *ctx,
 
 	civetweb_open_lua_libs(L);
 
+#if defined(MG_EXPERIMENTAL_INTERFACES)
 	/* Check if debugging should be enabled */
 	if ((conn != NULL) && (conn->dom_ctx != NULL)) {
 		debug_params = conn->dom_ctx->config[LUA_DEBUG_PARAMS];
 	}
+#endif
 
 #if LUA_VERSION_NUM == 502
 	/* Keep the "connect" method for compatibility,