Do you guys have a boilerplate that you are very used to build code on top of?
I have one like this (sans include guard which depend on header file name):
#include
#include
#include
#include
#include
// Feature testers
#ifndef __has_feature
#define __has_feature(x) 0
#endif
#ifndef __has_
Colorful text is colorful! So what is this "boilerplate" thing exactly?
I've heard the expression before but not quite sure what it refers to.
On Wed, Jun 12, 2013 at 12:25 PM, Maxthon Chan wrote:
> Do you guys have a boilerplate that you are very used to build code on top
> of? I have one like
Copied from Xcode and Mail saved all formatting from code highlighting as RTF.
The code boilerplate is what I always use as a start point of my code. It makes
it possible to expose some Objective-C code as plain C/C++ as I did in CGIKit
5, and it detects compiler. I have a newer version that doe
Why...would anyone want to do that? The whole point of OOP is to hide
details so as to allow programmers to concentrate on one thing at a time
(while giving us the bonus of modular, reusable, easily maintainable code).
Why would you want/need to unhide details?
On Fri, Jun 14, 2013 at 2:59 AM, Ma
I mean exposing a function or two from Objective-C code so that it can be
accessed from other languages. There is no reason to prevent a function with
signature CGIApplicationMain(int, const char **, const char *restrict, const
char *restrict); from being exposed, right?
Also, the inline functi
I never needed something like what you wrote. That stuff belongs in a
framework. If a compiler doesn't support an attribute that I need (and I
typically don't need attributes), then I don't support the compiler.
Objective-C modules also doesn't really need anything special to expose C
functions
This piece of code is from SubtitleKit, a library regarding processing
different types of subtitle files. I occasionally use some features that does
not exist in GCC or older versions of Clang so I used those boilerplates to
make sure my code compiles under all my target platforms with minimal c