~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/src/aspects/WinMacros.ah

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "Puma/PreMacro.h"
27
27
#include "Puma/Config.h"
28
28
 
29
 
using namespace Puma;
30
 
 
31
29
 
32
30
aspect WinMacros {
33
31
  /********************************************************/
36
34
 
37
35
  // predefine win specific macros
38
36
  advice execution ("void Puma::PreprocessorParser::configure(...)") &&
39
 
         args (config, "bool") : before (const Config &config) {
 
37
         args (config, "bool") : before (const Puma::Config &config) {
40
38
    if (config.Option ("--vc")) {
41
39
      // constants
42
40
      thisJoinPoint->that ()->defMacro ("__w64", " ");
48
46
      thisJoinPoint->that ()->defMacro ("__noop", " ");
49
47
 
50
48
      // function-like macros
51
 
      PreMacro::MacroArgs *args = new PreMacro::MacroArgs (1);
 
49
      Puma::PreMacro::MacroArgs *args = new Puma::PreMacro::MacroArgs (1);
52
50
      args->append ("__arg0");
53
51
      thisJoinPoint->that ()->macroManager ()->addMacro (
54
 
        new PreMacro ("__declspec", args, " "));
 
52
        new Puma::PreMacro ("__declspec", args, " "));
55
53
    }
56
54
  }
57
55