lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Try out... Probably yes, because the proprocessor will make the replacement...

On Tue, Oct 18, 2011 at 5:54 PM, joao lobato <btnfdp.lobato@gmail.com> wrote:
On 10/18/11, Patrick Mc(avery <patrick@spellingbeewinnars.org> wrote:
>
> It should be easier for a single developer to split code between files.
>

In C, is it possible to do something like this?

int function(int a){
 int b;
 #include "other_file.h"
 return a + b;
}

// other_file.h
b = 42;




--
Gabriel Duarte
Linux User #471185
Rio de Janeiro - RJ
http://genericdev.wordpress.com/

Phones:
(55) (21) 9463-7760  -> Mobile
(55) (21) 2464-9302  -> Home