Ericson2314 / Voxlap

Making Ken Silverman's "Voxlap" voxel graphics engine run on any platform with SDL.
97 stars 14 forks source link

Guard blocks or #pragma once? #24

Closed Lensman closed 11 years ago

Lensman commented 11 years ago

Just a quick question. I've been using guard blocks, but then I spotted a comment where you removed a guard block an replaced with #pragma once. Is it okay to continue with guard blocks?

Ericson2314 commented 11 years ago

Ah was going to mention that. I prefer #pragma once. I think it's more efficient and doesn't clutter the name space so double win. If you have a counter argument I'd love to here it though.

Lensman commented 11 years ago

Cool.