You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* result.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hroussea <hroussea@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/04/23 14:14:08 by hroussea #+# #+# */
/* Updated: 2021/09/22 19:19:04 by hroussea ### ########lyon.fr */
/* */
/* ************************************************************************** */
#ifndef RESULT_H
# define RESULT_H
# include <libft/types.h>
typedef enum e_result_tag {
Ok,
Err,
} t_result_tag;
typedef struct s_result_i32 {
t_result_tag tag;
union {
char *err_msg;
t_i32 data;
};
} t_result_i32;
#endif