Convert Structure

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
whcir
Posts: 8
Joined: 27 Oct 2017 19:08

Convert Structure

#1 Post by whcir » 10 Dec 2017 01:56

How to convert a C structure containing a structure, to Mikrobasic, below.

Code: Select all

typedef struct _Task
{
   tStack* stackPointer;   /**< Pointer to the current task stack. THIS MUST BE THE FIRST ENTRY IN THIS STRUCTURE */
   tTaskState state;       /**< Current task state */
   uint8_t priority;       /**< Task priority */
   uint16_t ticksToWait;   /**< Timeout value that will be counted down at each system tick */
   char* taskName;         /**< Pointer to the task name */
   struct _Task* next;     /**< Pointer to the next task in the linked list */

} tTask;

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Convert Structure

#2 Post by filip » 11 Dec 2017 16:50

Hi,

I don't think that this is possible to realize in Basic.

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for ARM General”