File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 [string ]$IssueBody
55)
66
7+ # Get the current script directory
8+ $scriptDir = Split-Path - Path $MyInvocation.MyCommand.Definition - Parent
9+ # Construct the full path to _is_on_dev_nothing_to_commit.ps1
10+ $_is_on_dev_nothing_to_commit = Join-Path - Path $scriptDir - ChildPath " _is_on_dev_nothing_to_commit.ps1"
11+
12+ # Call _is_on_dev_nothing_to_commit.ps1
13+ $is_on_dev_nothing_to_commit = & $_is_on_dev_nothing_to_commit
14+
15+ if ($is_on_dev_nothing_to_commit -ne 1 )
16+ {
17+ Write-Host " You are not currently on the 'dev' branch, or you have some uncommited changes " - ForegroundColor Red
18+ Write-Host " Commit your local changes, sync your local 'dev' branch with the remote and start this script again." - ForegroundColor Red
19+ exit 1
20+ }
21+
722if (-not $IssueTitle )
823{
924 $IssueTitle = Read-Host " Please enter an issue title."
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ USING AXOpen.Messaging.Static;
55
66NAMESPACE AXOpen .Messaging
77 {S7 .extern= ReadWrite }
8- CLASS PUBLIC AxoMessengerService EXTENDS AxoObject IMPLEMENTS IAxoMessagingServices
8+ CLASS PUBLIC AxoMessengerService EXTENDS AxoObject IMPLEMENTS AXOpen . Core . IAxoMessagingServices
99 VAR PRIVATE
1010 _messages : REF_TO ARRAY [* ] OF REF_TO AxoMessenger ; // Array to hold message references
1111 _nextMessageIndex : DINT ;
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ NAMESPACE AXOpen.Core.Dummies
144144
145145 VAR PRIVATE
146146 NULL_MESSENGER_SERVICE : _NULL_MESSENGER_SERVICE;
147+ // NULL_MESSENGER_SERVICE : IAxoMessagingServices ;
147148 _messengerService : IAxoMessagingServices ;
148149 END_VAR
149150
Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ NAMESPACE AXOpen.Core
4747 END_METHOD
4848 END_CLASS
4949
50-
50+ INTERFACE IAxoNullObject EXTENDS IAxoObject END_INTERFACE
5151
5252 /// < summary>
5353 /// Provides an empty object for uninitialized objects.
5454 /// < / summary>
55- CLASS PUBLIC _NULL_OBJECT IMPLEMENTS IAxoObject
55+ CLASS PUBLIC _NULL_OBJECT IMPLEMENTS IAxoNullObject
5656 VAR PRIVATE
5757 {S7 .extern= Hidden }
5858 NULL_CONTEXT : _NULL_CONTEXT;
@@ -156,11 +156,13 @@ NAMESPACE AXOpen.Core
156156 END_METHOD
157157 END_CLASS
158158
159+ INTERFACE PUBLIC IAxoNullMessagingServices EXTENDS IAxoMessagingServices END_INTERFACE
160+
159161 /// < summary>
160162 /// Provides an empty RTC object for uninitialized RTC .
161163 /// < / summary>
162164 {S7 .extern= ReadWrite }
163- CLASS PUBLIC _NULL_MESSENGER_SERVICE IMPLEMENTS IAxoMessagingServices
165+ CLASS PUBLIC _NULL_MESSENGER_SERVICE IMPLEMENTS IAxoNullMessagingServices
164166 // Due to compiler issues with interface inheritance, we will temporarily implement methods related to messaging suspension also here.
165167 METHOD PUBLIC QueueMessage : BOOL
166168 VAR_INPUT
You can’t perform that action at this time.
0 commit comments