The Battle for Wesnoth  1.19.0+dev
Classes | Functions
lua_kernel_base.hpp File Reference
#include <sstream>
#include <string>
#include <vector>
#include <functional>
#include <cstdint>
Include dependency graph for lua_kernel_base.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lua_kernel_base
 
struct  lua_kernel_base::command_log
 Log implementation. More...
 

Functions

std::vector< std::string > luaW_get_attributes (lua_State *L, int idx)
 This function does the actual work of grabbing all the attribute names. More...
 

Function Documentation

◆ luaW_get_attributes()

std::vector<std::string> luaW_get_attributes ( lua_State *  L,
int  idx 
)

This function does the actual work of grabbing all the attribute names.

It's a separate function so that it can be used by tab-completion as well.

Definition at line 595 of file lua_kernel_base.cpp.

References dir_meta_helper(), impl_is_deprecated(), lua_push(), luaW_toboolean(), and ON_SCOPE_EXIT.

Referenced by lua_widget::impl_widget_dir(), and intf_object_dir().