On Wed, 23 May 2012 13:58:25 +0300
Lauri Kasanen <[email protected]> wrote:

> I get that. I mean that having the define in every header for every function 
> is ugly.
> 
> With the pragma, you have two lines per header. With the attribute, you have 
> the define for every function and global variable. Much more text for no 
> benefit.

We seem to have a language barrier here. Perhaps an example.

Case 1, pragmas:

#pragma

void func1
void func2
...
void func50

#pragma


That's two additions.


Case 2, attributes:

void MK_EXPORT func1
void MK_EXPORT func2
....
void MK_EXPORT func50


That's 50 additions.


My argument is that case 2 is really ugly and case 1 much cleaner.
The effect is the same in both cases.


- Lauri
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to