Skip to content

Commit b65dc32

Browse files
authored
Add MAIN_THREAD_EM_ASM_PTR to docs and changelog. NFC (#20284)
1 parent e99f39c commit b65dc32

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ See docs/process.md for more on how version tagging works.
2222
-----------------------
2323
- `EM_JS` and `EM_ASM` that are present in side module now have their syntax
2424
validated at build time. (#20258)
25+
- `MAIN_THREAD_EM_ASM_PTR` macro added for code that returns a pointer. This
26+
mirrors the existing `EM_ASM_PTR`. (#20261)
2527

2628
3.1.46 - 09/15/23
2729
-----------------
@@ -49,7 +51,8 @@ See docs/process.md for more on how version tagging works.
4951
- A new settings `TABLE_BASE` was introduced that can be used to place static
5052
function addresses (table slots) at a certain offset. This defaults to 1
5153
which is the previously fixed value. (#20149)
52-
- Clang's error detection of unused variables `-Wunused-variable` improved, which may require changes in user code (see #20169).
54+
- Clang's error detection of unused variables `-Wunused-variable` improved,
55+
which may require changes in user code (see #20169).
5356

5457
3.1.45 - 08/23/23
5558
-----------------

site/source/docs/api_reference/emscripten.h.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ Defines
219219
220220
Similar to :c:macro:`MAIN_THREAD_EM_ASM` but returns a ``double`` value.
221221

222+
.. c:macro:: MAIN_THREAD_EM_ASM_PTR(code, ...)
223+
224+
Similar to :c:macro:`MAIN_THREAD_EM_ASM` but returns a pointer value.
225+
222226
.. c:macro:: MAIN_THREAD_ASYNC_EM_ASM(code, ...)
223227
224228
Similar to :c:macro:`MAIN_THREAD_EM_ASM` but is proxied in an

0 commit comments

Comments
 (0)