Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

NULL argument semantics

These are the current rules for when NULL can be passed for arguments in C and C++ for these parameters:

  • input:
    • Interfaces not qualified with notnil may be NULL.
    • Sequence pointers may be NULL when the associated length is 0.
  • rout:
    • Primitive types (built-in types not counting string and wstring) may be NULL when the caller wants to ignore the result, but the pointer passed on the remote site will not necessarily be NULL.
    • Sequence, string, and wstring pointers may be NULL when the associated length is 0.
    • Interfaces may never be NULL as inputs.

  • inrout:
    • Must never be NULL:.
    • No other uses of NULL are allowed.