icetGetError(3)
β¨ icetGetError(3) β IceT Reference β¨
okay bestie, welcome to the IceT Reference π this is the page for icetGetError, and it's literally the "what went wrong tho" function. let's go π«Ά
πΈ NAME πΈ
icetGetError β return the last error condition. yes, the last one. not all of them. the one. π
β¨ Synopsis β¨
#include <IceT.h>
GLenum icetGetError( void );
that's it. no args, no drama, just vibes and a GLenum coming back at you π
π Description π
so here's the tea: this function retrieves the first error or warning condition that happened since the last time you called icetGetError, or since your program started up β whichever of those two came later. iykyk π§
and the important part, bestie: once an error condition has been retrieved with icetGetError, the error condition gets reset to no error and it cannot be retrieved again. it's giving one-time-only, no takebacks, the receipt is gone π
π Return Value π
you're gonna get back one of these flags, and you need to know them fr fr:
ICET_INVALID_VALUEβ an inappropriate value has been passed to a function. like, girl, that number was not it πICET_INVALID_OPERATIONβ an inappropriate function has been called. wrong function at the wrong time, embarrassing πICET_OUT_OF_MEMORYβ IceT has ran out of memory for buffer space. she's full, there's no room, it's over πICET_BAD_CASTβ a function has been passed a value of the wrong type. wrong type bestie, that's a whole different species πΈICET_INVALID_ENUMβ a function has been passed an invalid constant. that constant? not a real one πICET_SANITY_CHECK_FAILβ an internal error (or warning) has occurred. inside job, we don't talk about it β¨ICET_NO_ERRORβ no error has been raised since the last call toicetGetError. we're clean, we're thriving, main character energy π
π Bugs π
there is genuinely no way to tell if the value you got back was caused by an error or by a warning. they're the same flag. they're wearing the same outfit. you cannot tell them apart π
π¦ Notes π¦
the error value is not context dependent. periodt. π
π Copyright π
Copyright (C)2003 Sandia Corporation
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This source code is released under the New BSD License.
π See Also π
icetDiagnostics(3)β go read that one next bestie, it's the sibling β¨
okay that's the whole page!! this was the IceT Reference, from way back on August 9, 2010 π°οΈ (yes the source/version and date, we're keeping the receipts π
). slay, go check your error flags, and remember: icetGetError only tells you once ππ«Άβ¨
π¦ where this page comes from
- debian bookworm: paraview 5.11.0+dfsg-1+b1 Β· BSD-3-Clause
- debian trixie: paraview 5.13.2+dfsg-3 Β· BSD-3-Clause
- ubuntu jammy: paraview 5.10.0~rc1-1build3 Β· BSD-3-Clause
- ubuntu noble: paraview 5.11.2+dfsg-6build5 Β· BSD-3-Clause
- ubuntu questing: paraview 5.13.2+dfsg-3
- ubuntu resolute: paraview 6.0.1+dfsg1-7 Β· BSD-3-Clause
- ubuntu stonking: paraview 6.1.1+dfsg1-2build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms