Browse Source

Debugger for Lua scripts (Step 1/?)

bel2125 7 năm trước cách đây
mục cha
commit
d5fcd37c9a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);
 	civetweb_open_lua_libs(L);
 
 
+#if defined(MG_EXPERIMENTAL_INTERFACES)
 	/* Check if debugging should be enabled */
 	/* Check if debugging should be enabled */
 	if ((conn != NULL) && (conn->dom_ctx != NULL)) {
 	if ((conn != NULL) && (conn->dom_ctx != NULL)) {
 		debug_params = conn->dom_ctx->config[LUA_DEBUG_PARAMS];
 		debug_params = conn->dom_ctx->config[LUA_DEBUG_PARAMS];
 	}
 	}
+#endif
 
 
 #if LUA_VERSION_NUM == 502
 #if LUA_VERSION_NUM == 502
 	/* Keep the "connect" method for compatibility,
 	/* Keep the "connect" method for compatibility,