Add low-level warnings.

This commit is contained in:
Stephen Chung
2021-11-29 13:12:47 +08:00
parent ba0a6c667e
commit 4b4b7a753b
6 changed files with 28 additions and 8 deletions

View File

@@ -230,7 +230,11 @@ impl<'a> NativeCallContext<'a> {
/// If `is_method_call` is [`true`], the first argument is assumed to be the `this` pointer for
/// a script-defined function (or the object of a method call).
///
/// # WARNING
/// # WARNING - Low Level API
///
/// This function is very low level.
///
/// # Arguments
///
/// All arguments may be _consumed_, meaning that they may be replaced by `()`. This is to avoid
/// unnecessarily cloning the arguments.