Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clang/docs/LanguageExtensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2632,7 +2632,7 @@ with the current table size.
.. code-block:: c++

typedef void (*__funcref funcref_t)();
static __funcref table[0];
static funcref_t table[0];

size_t getSize() {
return __builtin_wasm_table_size(table);
Expand All @@ -2654,10 +2654,10 @@ or -1. It will return -1 if not enough space could be allocated.
.. code-block:: c++

typedef void (*__funcref funcref_t)();
static __funcref table[0];
static funcref_t table[0];

// grow returns the new table size or -1 on error.
int grow(__funcref fn, int delta) {
int grow(funcref_t fn, int delta) {
int prevSize = __builtin_wasm_table_grow(table, fn, delta);
if (prevSize == -1)
return -1;
Expand Down
Loading