Published on: 2025-06-29 21:22:25
Detecting and reporting unhandled exceptions with SetUnhandledExceptionFilter seemed logical, and, in fact, it worked... for a while. Eventually, we started to notice failures that should have been reported as a last-chance exception but weren't. After much investigation, we discovered that both Direct3D and Flash were installing their own unhandled exception filters! Worse, they were fighting over it, installing their handlers several times per second! In practice, this meant our last-chance cr
Keywords: code gpasetunhandledexceptionfilter new_code setunhandledexceptionfilter sizeof
Find related items on AmazonPublished on: 2025-08-15 04:27:20
Detecting if an expression is constant in C 21 Apr 2025 Here's a fun little language puzzle: implement a macro that takes an expression as an argument and: Verifies that the expression is a constant expression (i.e, known at compile time), otherwise aborts the compilation. "Returns" back the same value. Optionally, the returned value has the same type as the original expression. There's a number of ways to solve this, depending on which C standard you're using and whether compiler extensio
Keywords: compound constant expression sizeof type
Find related items on AmazonPublished on: 2025-08-23 18:26:46
Fun with -fsanitize=undefined and Picolibc Both GCC and Clang support the -fsanitize=undefined flag which instruments the generated code to detect places where the program wanders into parts of the C language specification which are either undefined or implementation defined. Many of these are also common programming errors. It would be great if there were sanitizers for other easily detected bugs, but for now, at least the undefined sanitizer does catch several useful problems. Supporting the
Keywords: __x sanitizer sizeof undefined unsigned
Find related items on AmazonGo K’awiil is a project by nerdhub.co that curates technology news from a variety of trusted sources. We built this site because, although news aggregation is incredibly useful, many platforms are cluttered with intrusive ads and heavy JavaScript that can make mobile browsing a hassle. By hand-selecting our favorite tech news outlets, we’ve created a cleaner, more mobile-friendly experience.
Your privacy is important to us. Go K’awiil does not use analytics tools such as Facebook Pixel or Google Analytics. The only tracking occurs through affiliate links to amazon.com, which are tagged with our Amazon affiliate code, helping us earn a small commission.
We are not currently offering ad space. However, if you’re interested in advertising with us, please get in touch at [email protected] and we’ll be happy to review your submission.