We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 691f016 + 38724ea commit 74872feCopy full SHA for 74872fe
src/output-flex.cpp
@@ -706,6 +706,11 @@ void output_flex_t::setup_flex_table_columns(flex_table_t *table)
706
707
int output_flex_t::app_define_table()
708
{
709
+ if (m_context_node || m_context_way || m_context_relation) {
710
+ throw std::runtime_error{"Tables have to be defined before calling any "
711
+ "of the process callbacks"};
712
+ }
713
+
714
luaL_checktype(lua_state(), 1, LUA_TTABLE);
715
716
auto &new_table = create_flex_table();
0 commit comments