Browse Source

cmDspProc4.h/c : Added 'decl' entry type to scMod.

master
kevin 9 years ago
parent
commit
5ec36d98b9
2 changed files with 8 additions and 0 deletions
  1. 7
    0
      cmProc4.c
  2. 1
    0
      cmProc4.h

+ 7
- 0
cmProc4.c View File

@@ -2693,6 +2693,7 @@ typedef struct
2693 2693
 
2694 2694
 _cmScModTypeMap_t _cmScModTypeArray[] =
2695 2695
 {
2696
+  { kDeclModTId,    0, "decl" },
2696 2697
   { kSetModTId,     1, "set" },
2697 2698
   { kLineModTId,    2, "line" },
2698 2699
   { kSetLineModTId, 3, "sline" },
@@ -3164,6 +3165,7 @@ cmRC_t _cmScModActivate(cmScModulator* p, cmScModEntry_t* ep )
3164 3165
 
3165 3166
   switch( ep->typeId )
3166 3167
   {
3168
+    case kDeclModTId:
3167 3169
     case kSetModTId:
3168 3170
       break;
3169 3171
 
@@ -3220,6 +3222,11 @@ bool  _cmScModExec( cmScModulator* p, cmScModVar_t* vp )
3220 3222
 
3221 3223
   switch( vp->entry->typeId )
3222 3224
   {
3225
+    case kDeclModTId:
3226
+      sendFl = false;
3227
+      fl     = true;
3228
+      break;
3229
+      
3223 3230
     case kSetModTId:
3224 3231
       {
3225 3232
         if((rc = _cmScModGetParam(p,&vp->entry->beg,&vp->value)) != cmOkRC )

+ 1
- 0
cmProc4.h View File

@@ -421,6 +421,7 @@ extern "C" {
421 421
   enum
422 422
   {
423 423
     kInvalidModTId,
424
+    kDeclModTId,     // declare a variable but do not associate a value with it (allows a variable to be connected to w/o sending a value) 
424 425
     kSetModTId,      // set variable to parray[0] at scLocIdx
425 426
     kLineModTId,     // linear ramp variable to parray[0] over parray[1] seconds
426 427
     kSetLineModTId,  // set variable to parray[0] and ramp to parray[1] over parray[2] seconds

Loading…
Cancel
Save