title: Best cross platform practices for dealing with a fatal error in C?
body: <p>Outside of logging the failure to stderr and a log file, how should I deal with a fatal error?</p>
  <p>example:</p>
  <pre><code>VkResult result = vkCreateInstance(&amp;createInfo, NULL, &amp;vulkanInfo-&gt;instance);
  if (result != VK_SUCCESS) {
      // ???
  }
  </code></pre>
  <p>If vkCreateInstance fails, it's all over. The app cannot continue. What should I do?</p>
  <p>Targets are Windows, Mac, Linux, Switch, and more.</p>
  <p>I realize this is a very open ended question. I’m just curious how the great minds here deal with it.</p>