c++ - couldnt understand the use of this #define -


i new 1 project, using oracle 10g , c++. connectivity db using pro*c. when checking code, catch 1 line not @ related c++.

#define sqlca_storage_class extern 

i google , found oracle document http://docs.oracle.com/cd/b10501_01/appdev.920/a97269/pc_09err.htm, state...

if symbol sqlca_storage_class defined, sqlca defined have storage class. example:

#define sqlca_storage_class extern  define sqlca extern. 

so questions...

  1. what exact meaning of line?
  2. according document can #define has capability provide storage?
  3. can use trick in our c/c++ codes?

i know presentation of question not good, want learn can use trick in our c/c++ codes.

edit : starting og .cpp file

#pragma warning(disable:4786) #define sqlca_storage_class extern #include <sqlda.h> #include <sqlca.h> #include <sys/time.h> 

note : want add pro*c tag here not find that. please create 1 tag that.

what exact meaning of line?

the exact meaning of #define sqlca_storage_class extern replace sqlca_storage_class extern before compilation.

according document can #define has capability provide storage?

the document doesn't talk storage, rather storage class. extern in c++ storage class specifier

can use trick in our c/c++ codes?

what trick, ? :)


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -