call() will fail earlier when object for call doesn't exist
This commit is contained in:
parent
0255edb8be
commit
f749b7fb18
3 changed files with 28 additions and 5 deletions
|
@ -79,7 +79,8 @@ namespace wren {
|
|||
void release_handle (Handle& handle) noexcept;
|
||||
void ensure_slots(int num_slots);
|
||||
int slot_count();
|
||||
void variable(const char* module, const char* name, int slot);
|
||||
void variable(const char* module, const char* name, int slot) noexcept;
|
||||
void variable_or_throw(const char* module, const char* name, int slot);
|
||||
void set_slot_handle(const Handle& handle, int slot);
|
||||
SlotType slot_type(int slot_num);
|
||||
Handle slot_handle(int slot_num);
|
||||
|
@ -103,7 +104,9 @@ namespace wren {
|
|||
template <typename U> U* user_data();
|
||||
template <typename U> void set_user_data (U* user_data);
|
||||
void set_user_data (std::nullptr_t);
|
||||
bool has_user_data() const;
|
||||
bool has_user_data() const noexcept;
|
||||
bool has_module (const char* module) const noexcept;
|
||||
bool has_variable (const char* module, const char* name) const noexcept;
|
||||
|
||||
std::size_t dynafunc_byte_size() const;
|
||||
void reset (Configuration* conf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue