error_conventions.rst 432 B

1234567891011121314151617
  1. .. _embedding_error_convetions:
  2. ========================
  3. Error Conventions
  4. ========================
  5. .. index::
  6. single: Error Conventions
  7. Most of the functions in the API return a SQRESULT value; SQRESULT indicates if a
  8. function completed successfully or not.
  9. The macros SQ_SUCCEEDED() and SQ_FAILED() are used to test the result of a function.::
  10. if(SQ_FAILED(sq_getstring(v,-1,&s)))
  11. printf("getstring failed");