Browse Source

Debugger for Lua scripts (Step 1/?)

bel2125 7 years ago
parent
commit
d5fcd37c9a
1 changed files with 2 additions and 0 deletions
  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,