aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/libgccjit.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-01-27 00:11:21 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-01-27 00:11:21 +0000
commitdc44ee3aef6fab2e760479c6fc9205838bd9fbcc (patch)
treeb8a7c53b8a35bbb44beb7ef4f944b64e3bddf2c2 /gcc/jit/libgccjit.h
parent48e4f473eb23e4bf95e517f9eb83272316674c16 (diff)
downloadgcc-dc44ee3aef6fab2e760479c6fc9205838bd9fbcc.zip
gcc-dc44ee3aef6fab2e760479c6fc9205838bd9fbcc.tar.gz
gcc-dc44ee3aef6fab2e760479c6fc9205838bd9fbcc.tar.bz2
Fix gcc_jit_context_get_last_error docs
gcc/jit/ChangeLog: * docs/topics/compilation.rst (gcc_jit_result_get_code): Fix typo. * docs/topics/contexts.rst (gcc_jit_context_get_last_error): The error buffer is only valid until the next call to the context. * libgccjit.h (gcc_jit_context_get_first_error): Reword the comment to omit mention of compiling. (gcc_jit_context_get_last_error): The error buffer is only valid until the next call to the context. From-SVN: r220145
Diffstat (limited to 'gcc/jit/libgccjit.h')
-rw-r--r--gcc/jit/libgccjit.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h
index 12514ba..8f4354e 100644
--- a/gcc/jit/libgccjit.h
+++ b/gcc/jit/libgccjit.h
@@ -305,7 +305,7 @@ gcc_jit_context_set_logfile (gcc_jit_context *ctxt,
int flags,
int verbosity);
-/* To be called after a compile, this gives the first error message
+/* To be called after any API call, this gives the first error message
that occurred on the context.
The returned string is valid for the rest of the lifetime of the
@@ -315,13 +315,13 @@ gcc_jit_context_set_logfile (gcc_jit_context *ctxt,
extern const char *
gcc_jit_context_get_first_error (gcc_jit_context *ctxt);
-/* To be called after a compile, this gives the last error message
+/* To be called after any API call, this gives the last error message
that occurred on the context.
- The returned string is valid for the rest of the lifetime of the
- context.
+ If no errors occurred, this will be NULL.
- If no errors occurred, this will be NULL. */
+ If non-NULL, the returned string is only guaranteed to be valid until
+ the next call to libgccjit relating to this context. */
extern const char *
gcc_jit_context_get_last_error (gcc_jit_context *ctxt);