Skip to content

Conversation

KaruroChori
Copy link
Contributor

More work to be done but let's start from these :).

@saghul saghul merged commit 374915a into quickjs-ng:master Dec 15, 2024
59 checks passed
#endif

void pstrcpy(char *buf, int buf_size, const char *str)
void js__pstrcpy(char *buf, int buf_size, const char *str)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why 2 underscores?

Copy link
Contributor Author

@KaruroChori KaruroChori Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw several functions generic-sounding down there like js__hrtime_ns using two, so I went with that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a convention Ben and I carried on from libuv and started applying here too.

Double underscore for internal stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants