News for hackers. Stuff that matters.
Re:µUBSan: clean-room reimplementation of the Undefined Beha... by sigjuice on Wednesday August 08, 2018 @03:00PM (#17718459)
Yes, the include guard is a very widespread technique for header files. My objection is against #include’ing a .c file to support the questionable trend of ‘single file libs’.
Re:µUBSan: clean-room reimplementation of the Undefined Beha... by TeMPOraL on Wednesday August 08, 2018 @03:48PM (#17718849)
I wasn't suggesting this as a serious method of organizing your project - merely pointing out that this quick hack can be done and is rather straightforward. And I did actually see it once or twice in the wild.