Skip to content

Instantly share code, notes, and snippets.

@swilly22
Last active September 16, 2019 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swilly22/212d33a86d0bdd15933762c5985b8ba1 to your computer and use it in GitHub Desktop.
Save swilly22/212d33a86d0bdd15933762c5985b8ba1 to your computer and use it in GitHub Desktop.
SIValue toUpper(SIValue v) {
SIType actual_type = SI_TYPE(v);
if(actual_type != SI_STRING) {
const char *actual_type_str = SIType_ToString(actual_type);
raise("Type mismatch: expected string but was %s", actual_type_str);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment