You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Implement the Monad tagged union (OK, NIL, ERR) marked with __attribute__((warn_unused_result)) and define the DOMAIN integer prefixes for error codes.
Acceptance Criteria:
Define the Monad union combining void* val and u32 err_code.
Define core domain prefixes (e.g., DOMAIN_CAMELOT, DOMAIN_APP) and specific error codes (e.g., ERR_OUT_OF_MEMORY).
Tests must validate unpacking logic correctly routes to isolated union payloads without type punning corruption.
Monadtagged union (OK,NIL,ERR) marked with__attribute__((warn_unused_result))and define theDOMAINinteger prefixes for error codes.Monadunion combiningvoid* valandu32 err_code.DOMAIN_CAMELOT,DOMAIN_APP) and specific error codes (e.g.,ERR_OUT_OF_MEMORY).