瀏覽代碼

Debugger for Lua scripts (Step 1/?)

bel2125 7 年之前
父節點
當前提交
d5fcd37c9a
共有 1 個文件被更改,包括 2 次插入0 次删除
  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,