visual studio - Override #pragma once with standard #ifndef MS-VC++ -


i haven't seen answers question (which means it's not allowed) thought i'd ask anyway.

is there way override automatic generation of #pragma once in .h or .hpp files created using ms visual-c++ use standard header guards of using portable friendly preprocessor directives?

#ifndef _v_descriptor_  #define _v_descriptor_  // code here #endif 

to answer real question, don't think visual studio has option that, pretty simple visual studio extensibility toolkit, i'm sure has written macro can download. around tools -> extension manager -> online gallery, there's large catalog of free addins can install.

for example, zoom c++ class wizard appears generate both styles of include guard. i've never used can't make recommendation 1 way or other.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -