docs: note regarding emit with backticks (#17608)

This commit is contained in:
flywind 2021-04-02 12:06:50 +08:00 • committed by GitHub
commit 2365b5250e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7039,9 +7039,9 @@ Example:
void fun(){}
""".}
For backward compatibility, if the argument to the `emit` statement
is a single string literal, Nim symbols can be referred to via backticks.
This usage is however deprecated.
.. note:: For backward compatibility, if the argument to the `emit` statement
is a single string literal, Nim symbols can be referred to via backticks.
This usage is however deprecated.
For a top-level emit statement, the section where in the generated C/C++ file
the code should be emitted can be influenced via the