Warning: include() [function.include]: Unable to access /var/www/html/rogue-development/blog2/wp-content/advanced-cache.php in /var/www/html/rogue-development/blog2/wp-settings.php on line 62

Warning: include(/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php) [function.include]: failed to open stream: No such file or directory in /var/www/html/rogue-development/blog2/wp-settings.php on line 62

Warning: include() [function.include]: Failed opening '/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/rogue-development/blog2/wp-settings.php on line 62

Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /var/www/html/rogue-development/blog2/wp-includes/functions.php on line 3468

Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /var/www/html/rogue-development/blog2/wp-includes/functions.php on line 3382

Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in /var/www/html/rogue-development/blog2/wp-includes/functions.php on line 3382
#ifdef « Marc’s Musings

#ifdef

EDIT: Ignore this, they got it. See the comments. Learn something new every day I guess. Don’t I feel like a fool now :)

I have a new #1 feature request for Actionscript. (Actually, I guess it’s a request for the compiler toolset)

Please add in #ifdef support, even if just for a predefined set of conditions.

#ifdef AIR
#ifdef NOT_AIR

Trying to dual-purpose code for web and AIR applications would be so much simpler with these constructs.

Last night I was adding a popup menu item to an app.

var menu:NativeMenu = new NativeMenu();

The app that I had worked so hard to completely abstract the AIR vs. the universal support was just AIRified. I ended up spending 20 minutes refactoring the code, but it would have been sooo nice to just #ifdef that out.

3 Responses to “#ifdef”


Comments are currently closed.