Skip to content

Commit e0746cc

Browse files
authored
Expose JS_DupAtomRT in quickjs.h (#1258)
Fixes: #1257
1 parent fad85d9 commit e0746cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,7 @@ static int JS_InitAtoms(JSRuntime *rt)
28402840
return 0;
28412841
}
28422842

2843-
static JSAtom JS_DupAtomRT(JSRuntime *rt, JSAtom v)
2843+
JSAtom JS_DupAtomRT(JSRuntime *rt, JSAtom v)
28442844
{
28452845
JSAtomStruct *p;
28462846

quickjs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ JS_EXTERN JSAtom JS_NewAtomLen(JSContext *ctx, const char *str, size_t len);
542542
JS_EXTERN JSAtom JS_NewAtom(JSContext *ctx, const char *str);
543543
JS_EXTERN JSAtom JS_NewAtomUInt32(JSContext *ctx, uint32_t n);
544544
JS_EXTERN JSAtom JS_DupAtom(JSContext *ctx, JSAtom v);
545+
JS_EXTERN JSAtom JS_DupAtomRT(JSRuntime *rt, JSAtom v);
545546
JS_EXTERN void JS_FreeAtom(JSContext *ctx, JSAtom v);
546547
JS_EXTERN void JS_FreeAtomRT(JSRuntime *rt, JSAtom v);
547548
JS_EXTERN JSValue JS_AtomToValue(JSContext *ctx, JSAtom atom);

0 commit comments

Comments
 (0)