preprocessor: submodule update and doc update

time-shift
Houtan Bastani 2019-08-08 10:27:56 -04:00
parent ea06dfbcd5
commit b6cbfb56d1
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
2 changed files with 18 additions and 1 deletions

View File

@ -10482,6 +10482,23 @@ directive (see below). A function is evaluated at the time it is invoked, not
at define time. Functions can be included in expressions and the operators that
can be combined with them depend on their return type.
.. rubric:: Checking variable type
Given a variable name or literal, you can check the type it evaluates to using
the following functions: ``isboolean``, ``isreal``, ``isstring``, ``istuple``,
and ``isarray``.
*Examples*
+---------------------+------------+
| **Code** | **Output** |
+=====================+============+
| ``isboolean(0)`` | ``false`` |
+---------------------+------------+
| ``isboolean(true)`` | ``true`` |
+---------------------+------------+
| ``isreal("str")`` | ``false`` |
+---------------------+------------+
.. rubric:: Casting between types

@ -1 +1 @@
Subproject commit ff6eea7f297cdceab7b8c2fd954d7332bb86e04f
Subproject commit 273c54f7fbd9a8f345e33300e25ea5fb45b2b3c8