title: Convert parameter-less define to a static function Objective C
body: <p>I have a define such as this in my code:</p>
  <p><code>#define FooBarCreate [FooBar callFromFile:__FILE__]</code></p>
  <p>This helps us get the filename of the caller and is a simple way to get a variable of <code>FooBar</code>. So callers can now do:</p>
  <p><code>[FooBarCreate doSomethingWithFooBar];</code></p>
  <p>I don't like the fact that I cannot however call this API from the Xcode Console. I was wondering if anyone could help me convert this into a static function. I went this far:</p>
  <p><code>static inline FooBar FooBarCreate() { [FooBar callFromFile:__FILE__]; }</code></p>
  <p>Now, this means that I need to change any other classes in my app from <code>FooBarCreate</code> to <code>FooBarCreate()</code> which would be a huge amount of work. Any recommendation on how I can get this done easier?</p>
  <p>In Swift this is much easier with a simple public struct.</p>